package com.xspace.android.xafcommon.been;

public class MessageBean {
	public static int TYPE_SMS = 0;
	public static int TYPE_MMS = 1;
	public static int READ_READ = 1;
	public static int READ_UNREAD = 0;

	public static int LAYOUT_INBOX = 1;

	private String name;
	private String date;
	private String text;
	// 1 inbox,其他 outbox
	private int layoutID;
	private String threadId;
	// 是否阅读 0未读， 1已读
	private int read;
	private int id;
	// 短信0，彩信1
	private int smsmms_type = TYPE_SMS;

	/**
	 * 
	 * @param name
	 * @param date
	 *            yyyy-MM-dd HH:mm
	 * @param text
	 * @param layoutID
	 *            1 inbox,其他 outbox
	 * @param threadId
	 * @param id
	 */
	public MessageBean(String name, String date, String text, int layoutID,
			String threadId, int id, int smsmms_type, int read) {
		this.name = name;
		this.date = date;
		this.text = text;
		this.layoutID = layoutID;
		this.threadId = threadId;
		this.id = id;
		this.smsmms_type = smsmms_type;
		this.read = read;
	}

	public MessageBean() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * yyyy-MM-dd HH:mm
	 * 
	 * @return
	 */
	public String getDate() {
		return date;
	}

	/**
	 * yyyy-MM-dd HH:mm
	 * 
	 * @param date
	 */
	public void setDate(String date) {
		this.date = date;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	/**
	 * 1 inbox,其他 outbox
	 * 
	 * @return
	 */
	public int getLayoutID() {
		return layoutID;
	}

	/**
	 * 1 inbox,其他 outbox
	 * 
	 * @param layoutID
	 */
	public void setLayoutID(int layoutID) {
		this.layoutID = layoutID;
	}

	public String getThreadId() {
		return threadId;
	}

	public void setThreadId(String threadId) {
		this.threadId = threadId;
	}

	/**
	 * @param smsmms_type
	 *            短信0，彩信1
	 */
	public void setSmsmms_type(int smsmms_type) {
		this.smsmms_type = smsmms_type;
	}

	/**
	 * 短信0，彩信1
	 * 
	 * @return
	 */
	public int getSmsmms_type() {
		return smsmms_type;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

}
